﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurityDetail.aspx.cs"
    Inherits="Portal.SecurityDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <base target="_self" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/selector.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        jQuery(document).ready(function () {

            //                alert($("option").val())

        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <fieldset>
        <legend>
            <%=Portal.Resources.lang.SecurityDetail_Detail %><span class="right">
                <asp:Button ID="btnSave" runat="server" CssClass="btn btn-primary" Text="保存" OnClick="btnSave_Click" />&nbsp
            </span></legend>
        <div class="row-fluid">
            <div class="span3">
                <%=Portal.Resources.lang.SecurityDetail_Name %>*</div>
            <div class="span9">
                <asp:TextBox ID="txtName" runat="server" Width="500"></asp:TextBox></div>
        </div>
        <div class="row-fluid">
            <div class="span3">
                <%=Portal.Resources.lang.SecurityDetail_Members %>*</div>
            <div class="span9">
                <asp:TextBox ID="txtMember" style=" display:none;" runat="server" TextMode="MultiLine" Width="500"></asp:TextBox>
                <asp:ListBox ID="lstboxMember" runat="server" Width="515"></asp:ListBox>
            </div>
        </div>
        <div style="margin: 1% 1% 1% 31%;">
        <asp:Button runat="server" CssClass="btn" ID="btnRemoveItem" Text="移 除" 
                    onclick="btnRemoveItem_Click"></asp:Button>
                <button type="button" style="width: 90px;" class="btn" onclick="selectUser(2,'txtMember','txtMemberId');__doPostBack('addToListBox1', '');">
                    选择人员</button>
                <button type="button" style="width: 90px;" class="btn" onclick="selectUser(8,'txtMember','txtMemberId');__doPostBack('addToListBox1', '');">
                    选 择 组</button>
                <button type="button" style="width: 90px;" class="btn" onclick="selectUser(4,'txtMember','txtMemberId');__doPostBack('addToListBox1', '');">
                    选择部门</button>
        </div>
        <div class="row-fluid">
            <div class="span6">
                <strong>
                    <asp:Label ID="lblMenu" runat="server" Text="菜单"></asp:Label> 
                    </strong></div>
            <div class="span6" style="display: none;">
                <strong class="pr10">
                    <%=Portal.Resources.lang.SecurityDetail_DataObject %></strong><asp:DropDownList ID="ddlType"
                        runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                    </asp:DropDownList>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span6">
                <asp:TreeView ID="tvMenu" runat="server" ShowCheckBoxes="All">
                </asp:TreeView>
            </div>
            <div class="span6" style=" display:none;">
                <asp:TreeView ID="tvData" runat="server" ShowCheckBoxes="All">
                </asp:TreeView>
            </div>
        </div>
    </fieldset>
    <div class="hidden">
        <asp:TextBox ID="txtMemberId" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtResourceId" runat="server"></asp:TextBox>
        <asp:LinkButton ID="addToListBox1" runat="server" onclick="addToListBox1_Click"></asp:LinkButton>
    </div>
    </form>
    <script type="text/javascript">
        $(document).ready(function () {
            parent.document.getElementById('frmContent').height = document.body.clientHeight;
        });
    </script>
</body>
</html>
